function Util(){
}

Util.initColorSelector = function(){
	var inputNodes = document.getElementsByTagName('input');
    for (var i = 0; i < inputNodes.length; i++)
    {
        var node = inputNodes[i];
        if (node.className == 'color')
        {
            return;
        }
    }
	makeColorSelectors();
};

/* **********************************************
 * CLICK  / MOUSE Handlers
 * **********************************************/
Util.hideMenu = function(){
	if(currentMenu && currentMenu.visible()){
		currentMenu.hide();
	}
};

/* **********************************************
 * STRING UTILITIES
 * **********************************************/
Util.stringReplaceAll = function(str, from, to){
    if (from == to) { 
		return str;
	}
    try {
        var idx = str.indexOf(from);
        while (idx > -1) {
            str = str.replace(from, to);
            idx = str.indexOf(from);
        }
        return str;
    } catch(e) {
        alert("Error message: " + e.message);
        return null;
    }
};

Util.removeColon = function(txt1){
	var txt = "";
	txt = txt + txt1;
	
	var firstPart;
	var lastPart;
	//replacing : to |
	var colonInd = txt.indexOf(":",0);
	if(colonInd != -1)
	{
		firstPart = txt.substr(0,colonInd);
		lastPart = txt.substr(colonInd+1, txt.length);
		txt = firstPart + "|" + lastPart;
	}
	
	//replacing \ to /
	var sInd = txt.indexOf("\\",0);
	while(sInd != -1)
	{
		firstPart = txt.substr(0,sInd);
		lastPart = txt.substr(sInd+1, txt.length);
		txt = firstPart + "/" + lastPart;
		sInd = txt.indexOf("\\",0);
	}
	return txt;
};

Util.removePxFromStr = function(str){
	var pxInd = str.indexOf("px",0);
	if(pxInd != -1){
		return str.substr(0,pxInd);
	}
	return str;
};

/* **********************************************
 * POSITION HANDLERS (Left & Top)
 * **********************************************/

Util.placeAtClick = function(node,e,toplevel) {	
  var ns6 = document.getElementById&&!document.all;
  var parentX;
  var parentY;
  if (ns6)
  {
	var x,y;
	if(e===null || (e.clientX === 0 && e.clientY === 0)){
		x = globalPositionX;
		y = globalPositionY;
	}else{
		x = clientX;
		y = clientY;
	}
	
	if(toplevel){
		node.style.left = x+document.body.scrollLeft+"px";
		node.style.top = y+document.body.scrollTop+"px";
	}else{
		parentX = this.getAncestorLeft(node.parentNode);
		parentY = this.getAncestorTop(node.parentNode);
		node.style.left = (x - parentX)+"px";
	   	node.style.top = (y - parentY)+"px";			
	}
  } 
  else
  {
	if(e===null){
		if(toplevel){
			node.style.left = globalPositionX;
			node.style.top = globalPositionY;
		}else{
			parentX = this.getAncestorLeft(node.parentNode);
			parentY = this.getAncestorTop(node.parentNode);
			node.style.left = (globalPositionX - parentX)+"px";
		    node.style.top = (globalPositionY - parentY)+"px";
		}
	}else{
	    node.style.left = Event.pointerX(e);
		node.style.top = Event.pointerY(e);
	}
	/*if(e==null || (e.clientX == 0 && e.clientY == 0)){
		if(toplevel){
			node.style.left = globalPositionX+document.body.scrollLeft+"px";
			node.style.top = globalPositionY+document.body.scrollTop+"px";
			node.style.pixelLeft = globalPositionX+document.body.scrollLeft;
			node.style.pixelTop = globalPositionY+document.body.scrollTop;
		}else{
		}
	}else{
	    node.style.pixelLeft = e.clientX+document.body.scrollLeft;
		node.style.pixelTop = e.clientY+document.body.scrollTop;
	}*/
  }
  return node;
};

Util.getAncestorLeft = function(node){
	if(node !== null && isOfType(node,'div')){
		var thisLeft = parseInt(node.style.left.replace("px",""),10);
		if(thisLeft>-1){			
			return thisLeft + this.getAncestorLeft(node.parentNode);
		}else{ return 0; }
	}
	return 0;
};

Util.getAncestorTop = function(node){
	if(node !== null && isOfType(node,'div')){
		var thisTop = parseInt(node.style.top.replace("px",""),10);
		if(thisTop>-1){
			return thisTop + this.getAncestorTop(node.parentNode);
		}else{ return 0; }
	}
	return 0;
};


/* **********************************************
 * DIALOG Utilities
 * **********************************************/
 
Util.showDialog = function(dialogID, titleValue, widthValue){
	this.hideMenu();
	Modalbox.show($(dialogID), {title: titleValue, width: widthValue}); return false;
};

/* **********************************************
 * BROWSER / WINDOW UTILITIES
 * **********************************************/
 
Util.getBrowser = function() {
    if (document.layers) {
        return "NN4";
    }
    if (document.all) {
        if (window.XMLHttpRequest) {
            return "ie7";
        } else {
            var str = navigator.userAgent;
            /*  Detect MSIE 6.0 from navigator.userAgent */
            if (str.match("MSIE 6.0")) { return "ie6"; }
            return "ie7_no_XMLHttpRequest";
        }
    }
    if (!document.all && document.getElementById) {
        return "NN6";
    }
    /* alert("getBrowser(): Unknown browser. Please you should use a Firefox or internet explorer browser!"); */
    return "NN6";
};

Util.getOS = function(){
	var agt=navigator.userAgent;
	if ((agt.indexOf("Win")!=-1)||(agt.indexOf("Windows")!=-1)){
		return "windows";
	}else{ 
		return "others";
	}
};

Util.redirectWindow = function(loc){
	window.location = loc;
};

Util.isImage = function(fName){
	var tokens = fName.split(".");
	var typeText = tokens[tokens.length-1].toUpperCase();
	if(typeText == "JPEG" || typeText == "JPG" || typeText == "GIF" || typeText == "PNG"){
		return true;
	}else{
		return false;
	}
};

Util.isJavascript = function(fName){
	var tokens = fName.split(".");
	var typeText = tokens[tokens.length-1].toUpperCase();
	if(typeText == "JS"){
		return true;
	}else{
		return false;
	}
};

Util.isFlashObj = function(fName){
	var tokens = fName.split(".");
	var typeText = tokens[tokens.length-1].toUpperCase();
	if(typeText == "SWF"){
		return true;
	}else{
		return false;
	}
};

/* **********************************************
 * FILE Utilities
 * **********************************************/
 
Util.getHome = function() {
    try {
		if(this.getOS() == "windows"){
			var sPathTmp = window.location.pathname;
	        	var sPath = sPathTmp.replace("\/", "");
	        	sPath = this.stringReplaceAll(sPath, "\\", "/");
	        	return  sPath;
		}else{
			return window.location.pathname;
		}
    } catch(e) {
        alert("Error message: " + e.message);
        return null;
    }
};

Util.getHomeDirectory = function() {
    try {
		if(this.getOS() == "windows"){
			var sPathTmp = window.location.pathname;
	        	sPathTmp = sPathTmp.replace("\/", "");
		        sPathTmp = this.stringReplaceAll(sPathTmp, "\\", "/");
		        var sPage = sPathTmp.substring(sPathTmp.lastIndexOf('\/') + 1);
		        var sPath = sPathTmp.replace(sPage, "");
		        return  sPath;
		}else{
			return window.location.pathname;
		}
    } catch(e) {
        alert("getHomeDirectory():" + e.name + ". Error message: " + e.message);
        return null;
    }
};

Util.removePath = function(fileNameT, curDir) {
    try {
        var fileName = fileNameT.replace(/file:\/\/\//, "");
        fileName = fileName.replace(/\//g, "\\");
        /* (for use on Windows OS) */
        fileName = fileName.replace(/%20/g, " ");
        var iLastBackslash = fileName.lastIndexOf("\\");
        var thisfilename = fileName.substring(iLastBackslash + 1, fileName.length);
        var curdir = fileName.substring(0, iLastBackslash);
        curdir = curdir.replace(/file:\/\/\//, "");
        curdir = curdir.replace(/\//g, "\\");
        curdir = curdir.replace(/%20/g, " ");
        iLastBackslash = curdir.lastIndexOf("\\");
        var thiscurdir = curdir.substring(iLastBackslash + 1, curdir.length);
        //alert( thiscurdir +"/"+thisfilename +"\n");
        if (curDir){
            return thiscurdir + "/" + thisfilename;
        }else {
            return thisfilename;
        }
    } catch(e) {
        alert("Error message: " + e.message);
        return null;
    }
};

Util.clearText = function(text) {
    if (text === null) { return null; }
    try {
        var re = /\$|,|@|#|~|`|\%|\*|\^|\&|\(|\)|\+|\=|\[|\-|\]|\[|\}|\{|\;|\:|\'|\"|\<|\>|\?|\||\\|\!|\$/g;
        return text.replace(re, "");
    } catch(e) {
        alert("Error message: " + e.message);
        return text;
    }
};

Util.writeToFile = function(filename, text) {
	if (this.getOS() == "windows"){
		filename = this.stringReplaceAll(filename, "/", "\\");
	}
    
    filename = this.stringReplaceAll(filename, "%20", " ");
	text = text.replace(/%5C/g, "/");
	var file;
    if ((this.getBrowser() == "ie6" || this.getBrowser() == "ie7" || this.getBrowser() == "ie7_no_XMLHttpRequest")) {
        try {
            var fso = new ActiveXObject("Scripting.FileSystemObject");
            if (fso.FileExists(filename))
            {
                var a, ForWriting;
                ForWriting = 2;
                try {
                    file = fso.OpenTextFile(filename, ForWriting, false);
                } catch(e) {
                    alert("Cannot open the file " + filename + " text lengh=" + text.length + "writeToFile():" + e.name + ". Error message: " + e.message);
                    return null;
                }
                try {
                    file.WriteLine(text);
                } catch(e0) {
                    alert("Cannot write into the file " + filename + " text lengh=" + text.length + "writeToFile():" + e0.name + ". Error message: " + e0.message);
                    return null;
                }
            } else {
                file = fso.CreateTextFile(filename, true);
                file.WriteLine(text);
            }
            file.Close();
        } catch(e1) {
            alert("Cannot save the file " + filename + " text lengh=" + text.length + "writeToFile():" + e1.name + ". Error message: " + e1.message);
            return null;
        }
    } else if (this.getBrowser() == "NN6") {
        try
        {
			/* //////////////////////////////////////////////////////////////// */
			if(this.getOS() == "windows"){
				netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
			}else{
				try {
					netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
				} catch (e4) {
					alert("Permission to save file was denied.");
				}
			
				/* get the path to the user's home (profile) directory */
				/* //CHANGED ON WED NIGHT
				const DIR_SERVICE = new Components.Constructor("@mozilla.org/file/directory_service;1", "nsIProperties");
				try { 
					path=(new DIR_SERVICE()).get("ProfD", Components.interfaces.nsIFile).path; 
				} catch (e) {
					alert("error");
				}*/
			}
			/* ////////////////////////////////////////////////////////////////
				//netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesWrite")
				//netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); */
            file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
            file.initWithPath(filename);
            if (!file.exists()) {
				//file.create(0x00, 0644); 
				file.create(0x00, 644); 
			}
            var outputStream = Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream);
            /* outputStream.init(file, 0x20 | 0x02, 00004, null); */
            outputStream.init(file, 0x04 | 0x08 | 0x20, 420, 0);
            outputStream.write(text, text.length);
            outputStream.flush();
            outputStream.close();
        }
        catch (e3) {
            alert("Permission to write file denied.");
            return null;
        }
    } else {
        alert("Sorry, you need IE or NN6 to read this page\nThis feature does\'nt work for " + this.getBrowser());
        return null;
    }
	
    return "";
};

Util.readFromFile = function(filename) {
	if (this.getOS() == "windows"){
		filename = this.stringReplaceAll(filename, "file:///", "");
		filename = this.stringReplaceAll(filename, "\/", "\\");

		netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	}else{
		filename = this.stringReplaceAll(filename, "file://", "");
		try {
			netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
		} catch (e) {
			alert("Permission to save file was denied.");
		}
		/* get the path to the user's home (profile) directory */
		/* // CHANGED ON WED NIGHT
		const DIR_SERVICE2 = new Components.Constructor("@mozilla.org/file/directory_service;1", "nsIProperties");
		
		try { 
			path=(new DIR_SERVICE2()).get("ProfD", Components.interfaces.nsIFile).path; 
		} catch (e) {
			alert("error");
		}*/
	}

	
	/*try {
		netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
	} catch (e) {
		alert("Permission to read file was denied.");
	}*/
	var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);

	file.initWithPath( filename );
	if ( file.exists() === false ) {
		alert("File does not exist");
	}
	var is = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance( Components.interfaces.nsIFileInputStream );
	//is.init( file,0x01, 00004, null);
	is.init( file,0x01, 4, null);
	var sis = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance( Components.interfaces.nsIScriptableInputStream );
	sis.init( is );
	var output = sis.read( sis.available() );

	return output;
};

/* **********************************************
 * TOGGLE / SHOW FUNCTION
 * **********************************************/
Util.toggleDiv = function(divid){
	var newEffect = new Effect.toggle($(divid));
};

Util.toggleDiv = function(divid,effect){
	var newEffect = new Effect.toggle($(divid),effect);
};

Util.showDiv = function(divid){
	var div = $(divid);
	if(!div.visible()){ 	var newEffect = new Effect.toggle(div); 	}
};

//recursive function to toggle the eye buttons
Util.toggleEyeButton = function(divID, change){
	if(!change){return;}
	this.toggleDiv(divID);
	var div = $(divID);
	var childNodesList = div.childNodes;
	for(var i = 0; i < childNodesList.length; i++)
	{
		if( $("btn"+divID).className == "eyeBtn" &&
			$("btn"+childNodesList[i].id).className == "eyeBtnBW"	 )
			{
				this.toggleEyeButton(childNodesList[i].id, false);
			}
			else{
				this.toggleEyeButton(childNodesList[i].id, true);
			}
	}
	
	if(change){		
		var btn = $("btn"+divID);
		var classVal = btn.className;
		if(classVal == "eyeBtnBW"){
			btn.className = "eyeBtn";
		}else{
			btn.className = "eyeBtnBW";
		}
	}
};


/* **********************************************
 * CSS Utilities
 * **********************************************/
Util.hasStyle = function(styleTxt,styleProperty){
	if(styleTxt.indexOf(styleProperty) == -1){
		return false;
	}else{
		return true;
	}
};

/* **********************************************
 * RGB Utilities
 * **********************************************/
Util.RGB2HTML = function(rgbColor){
	var firstBrackIndex = rgbColor.indexOf("(");
	var lastBrackIndex = rgbColor.indexOf(")");
	var rgbStr = rgbColor.substring(firstBrackIndex+1,lastBrackIndex);
	var rgb = rgbStr.split(',');
	var red = parseInt(rgb[0],10); 	var green = parseInt(rgb[1],10); 	var blue = parseInt(rgb[2],10);
	
	return this.toHex(red)+this.toHex(green)+this.toHex(blue);
};

Util.toHex = function(N) {
	if (N===null) { return "00"; }
	N=parseInt(N,10); if (N===0 || isNaN(N)) { return "00"; }
	N=Math.max(0,N); N=Math.min(N,255); N=Math.round(N);
	return "0123456789ABCDEF".charAt((N-N%16)/16) + "0123456789ABCDEF".charAt(N%16);
};


/* **********************************************
 * Some Obsolete ones
 * **********************************************/
Util.decreaseDimensionOfDIV = function (obj,decreaseVal){
	var widthVal = ""+obj.style.width;
	var heightVal = ""+obj.style.height;
	//removing px
	widthVal = this.removePxFromStr(widthVal);
	obj.style.width = (parseInt(widthVal,10)-decreaseVal) + "px";
	
	//removing px
	heightVal = this.removePxFromStr(heightVal);
	obj.style.height = (parseInt(heightVal,10)-decreaseVal) + "px";
};

Util.increaseDimensionOfDIV = function(obj,increaseVal){
	var widthVal = ""+obj.style.width;
	var heightVal = ""+obj.style.height;
	//removing px
	widthVal = this.removePxFromStr(widthVal);
	obj.style.width = (parseInt(widthVal,10)+increaseVal) + "px";
	
	//removing px
	heightVal = this.removePxFromStr(heightVal);
	obj.style.height = (parseInt(heightVal,10)+increaseVal) + "px";
};


/* **********************************************
 * FORM Utilities
 * **********************************************/
Util.enableDisableAction = function(index, controlElement, changeElement){
	var inputVal = $(controlElement+index).value;
	if(inputVal.length > 0){
		$(changeElement+index).disabled = "disabled";
	}else{
		$(changeElement+index).disabled = "";
	}
	$(changeElement+index).value = "";
};


/* **********************************************
 * ICON Utilities
 * **********************************************/
Util.getScriptIconHTML = function(){
	return '<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#84909b><img border="0" width=1 height=1></TD><TD BGCOLOR=#84909b><img border="0" width=1 height=1></TD><TD BGCOLOR=#828e99><img border="0" width=1 height=1></TD><TD BGCOLOR=#7e8b97><img border="0" width=1 height=1></TD><TD BGCOLOR=#7d8a96><img border="0" width=1 height=1></TD><TD BGCOLOR=#7d8a96><img border="0" width=1 height=1></TD><TD BGCOLOR=#7d8a96><img border="0" width=1 height=1></TD><TD BGCOLOR=#7d8a96><img border="0" width=1 height=1></TD><TD BGCOLOR=#7d8a96><img border="0" width=1 height=1></TD><TD BGCOLOR=#7d8a96><img border="0" width=1 height=1></TD><TD BGCOLOR=#7e8b97><img border="0" width=1 height=1></TD><TD BGCOLOR=#7a8693><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#7a8693><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#89929b><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=10><img border="0" width=1 height=1></TD><TD BGCOLOR=#7a8693><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#7a8693><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#5e6974><img border="0" width=1 height=1></TD><TD BGCOLOR=#fcffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#f5fafe COLSPAN=6><img border="0" width=1 height=1></TD><TD BGCOLOR=#f6fbff><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#6a757f><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#77838f><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#505a65><img border="0" width=1 height=1></TD><TD BGCOLOR=#535d67><img border="0" width=1 height=1></TD><TD BGCOLOR=#515c65 COLSPAN=5><img border="0" width=1 height=1></TD><TD BGCOLOR=#535d67><img border="0" width=1 height=1></TD><TD BGCOLOR=#59636c><img border="0" width=1 height=1></TD><TD BGCOLOR=#5e6871><img border="0" width=1 height=1></TD><TD BGCOLOR=#646d77><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#74808c><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#fcfdfe><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=8><img border="0" width=1 height=1></TD><TD BGCOLOR=#798591><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#727e8a><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#f9fafc><img border="0" width=1 height=1></TD><TD BGCOLOR=#ced6e0><img border="0" width=1 height=1></TD><TD BGCOLOR=#d0d8e0 COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#ced6e0><img border="0" width=1 height=1></TD><TD BGCOLOR=#fafbfc><img border="0" width=1 height=1></TD><TD BGCOLOR=#f8f9fb><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#727e8a><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR></TABLE><TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#707a87><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#f6f8fa><img border="0" width=1 height=1></TD><TD BGCOLOR=#fafcfd><img border="0" width=1 height=1></TD><TD BGCOLOR=#fcfdfe><img border="0" width=1 height=1></TD><TD BGCOLOR=#fcfdfe><img border="0" width=1 height=1></TD><TD BGCOLOR=#fcfdfe><img border="0" width=1 height=1></TD><TD BGCOLOR=#fbfcfe><img border="0" width=1 height=1></TD><TD BGCOLOR=#fafbfc><img border="0" width=1 height=1></TD><TD BGCOLOR=#f8fafb><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#707a87><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#6e7883><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#f5f7fa><img border="0" width=1 height=1></TD><TD BGCOLOR=#c4cdd6><img border="0" width=1 height=1></TD><TD BGCOLOR=#c6cfd8 COLSPAN=5><img border="0" width=1 height=1></TD><TD BGCOLOR=#c3ccd6><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#6e7883><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#6b7581><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#f1f5f8><img border="0" width=1 height=1></TD><TD BGCOLOR=#f6f9fc><img border="0" width=1 height=1></TD><TD BGCOLOR=#f7fbfd COLSPAN=4><img border="0" width=1 height=1></TD><TD BGCOLOR=#f7fafc><img border="0" width=1 height=1></TD><TD BGCOLOR=#f3f7fa><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#6b7581><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#68737e><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#f0f4f8><img border="0" width=1 height=1></TD><TD BGCOLOR=#bac4ce><img border="0" width=1 height=1></TD><TD BGCOLOR=#bcc6d0 COLSPAN=4><img border="0" width=1 height=1></TD><TD BGCOLOR=#bac4ce><img border="0" width=1 height=1></TD><TD BGCOLOR=#f0f4f8><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#68737e><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#66707b><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#edf2f6><img border="0" width=1 height=1></TD><TD BGCOLOR=#f3f7fa><img border="0" width=1 height=1></TD><TD BGCOLOR=#f4f8fc COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#f3f8fb><img border="0" width=1 height=1></TD><TD BGCOLOR=#f1f6f9><img border="0" width=1 height=1></TD><TD BGCOLOR=#f0f4f8><img border="0" width=1 height=1></TD><TD BGCOLOR=#ecf2f6><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#66707a><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD><TD BGCOLOR=#656f79><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#ecf1f6><img border="0" width=1 height=1></TD><TD BGCOLOR=#b0bbc6><img border="0" width=1 height=1></TD><TD BGCOLOR=#b2bdc8 COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#b0bbc6><img border="0" width=1 height=1></TD><TD BGCOLOR=#edf2f7><img border="0" width=1 height=1></TD><TD BGCOLOR=#ebf0f5><img border="0" width=1 height=1></TD><TD BGCOLOR=#e9eff4><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#646e78><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#606871 COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#5b636d><img border="0" width=1 height=1></TD><TD BGCOLOR=#606a75><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#e8eef4><img border="0" width=1 height=1></TD><TD BGCOLOR=#ecf1f6><img border="0" width=1 height=1></TD><TD BGCOLOR=#edf1f7 COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#ecf1f6><img border="0" width=1 height=1></TD><TD BGCOLOR=#eaeef4><img border="0" width=1 height=1></TD><TD BGCOLOR=#e9eef4><img border="0" width=1 height=1></TD><TD BGCOLOR=#e7ecf3><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#616b75><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#5c646d COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#feffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#606a75><img border="0" width=1 height=1></TD><TD BGCOLOR=#fcffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#e4ebf2><img border="0" width=1 height=1></TD><TD BGCOLOR=#e5ebf2 COLSPAN=7><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff><img border="0" width=1 height=1></TD><TD BGCOLOR=#606973><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#4a535d COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#606a75><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=11><img border="0" width=1 height=1></TD><TD BGCOLOR=#606973><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#ffffff COLSPAN=2><img border="0" width=1 height=1></TD><TD BGCOLOR=#27333e COLSPAN=12><img border="0" width=1 height=1></TD><TD BGCOLOR=#ffffff COLSPAN=3><img border="0" width=1 height=1></TD></TR></TABLE>';
};

Util.getResizeSquareIconHTML = function(){
	return '<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#dceafb COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#d9e8fb COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#d7e7fa COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#d4e5fa COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#d1e3fa COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#cee1fa COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#cbdffa COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#c9def9 COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=1><img border="0" width=1 height=1></TD><TD BGCOLOR=#c6dcf9 COLSPAN=9><img border="0" width=1 height=1></TD><TD BGCOLOR=#6593cf><img border="0" width=1 height=1></TD></TR><TR><TD BGCOLOR=#6593cf COLSPAN=11><img border="0" width=1 height=1></TD></TR></TABLE>';
};